<?php

namespace Modules\Chip\Entities;

use Modules\Core\Entities\BaseEntity as Model;
use ThrowException;


class Chip extends Model
{

    protected $guarded = [];
    protected $table = 'chip';

    static public $resourceName = '碎片';

    protected $casts = [
    ];

    // 发放给用户
    public function sendToUser($user, $total, $options = []) 
    {
    	$user->chipAsset($this->id)->in($total, $options);
    }
}
